package javaStu.MyCompare;

import java.util.Comparator;

/**
 * @author: leiwenkang
 * @date: 2020/7/14
 * @time: 20:02
 */
public class StudentComparator implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        return o1.getId() - o2.getId();
    }
}
